package shared;

import java.util.HashMap;

public class BlockTypeList {
	private static HashMap<String, String> blockTypeMap;
	private static HashMap<String, String> blockItemTypeMap;
	
	public static void init() {
		blockTypeMap = new HashMap<String, String>();
		blockItemTypeMap = new HashMap<String, String>();
		
		blockTypeMap.put("earth", "resources/tiles/earth.png");
		blockTypeMap.put("grass", "resources/tiles/grass.png");
		blockTypeMap.put("stone", "resources/tiles/stone.png");
		
		//blockItemTypeMap.put("grass", "resources/items/earthBlock.png");
		blockItemTypeMap.put("earth", "resources/items/earthBlock.png");
		blockItemTypeMap.put("stone", "resources/items/stoneBlock.png");
	}
	
	public static String getBlockResourcePath(String blockType) {
		return blockTypeMap.get(blockType);
	}
	
	public static String getBlockItemResourcePath(String blockItemType) {
		return blockItemTypeMap.get(blockItemType);
	}
}
